'use strict';
const mysql = require('src/common/get-config').mysql;
const knex = require('knex')({
  client: 'mysql',
  connection: {
    host: mysql.host,
    user: mysql.username,
    password: mysql.password,
    database: mysql.database
  },
  useNullAsDefault: true
});

module.exports = knex;
